package com.jintu.portal.pojo.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.jintu.portal.pojo.entity.TSysNotice;
import com.jintu.portal.pojo.entity.TSysNoticeCompany;
import com.jintu.portal.utils.BeanUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by liyou on 2017/10/2.
 */
public class SysNoticeLastestDto implements Serializable {

    private Long sysNoticeId;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    private String title;

    private Integer isView;//是否显示new,0显示，1不显示

    public SysNoticeLastestDto(){

    }

    public SysNoticeLastestDto(TSysNotice tsn, TSysNoticeCompany tsnc) throws Exception {
        BeanUtils.copyProperties(tsn,this);
        this.sysNoticeId = tsn.getId();
        this.isView = tsnc.getIsView();
    }

    public Long getSysNoticeId() {
        return sysNoticeId;
    }

    public void setSysNoticeId(Long sysNoticeId) {
        this.sysNoticeId = sysNoticeId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getIsView() {
        return isView;
    }

    public void setIsView(Integer isView) {
        this.isView = isView;
    }
}
